import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export default new Vuex.Store({
  state: {
    city: '深圳'
  },
  actions: {
    changestatus (ctx, citys) {
      ctx.commit('changestatus', citys)
    }
  },
  mutations: {
    changestatus (state, citys) {
      state.city = citys
    }
  }
})
